home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Games / NeXTmille / Source / HandTileView.h < prev    next >
Text File  |  1990-12-08  |  1KB  |  41 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import "CardHolder.h"
  5. #import    "CardView.h"
  6. #import    "mille.h"
  7.  
  8.  
  9. // This class holds the hand for each player.
  10. //    Cards are drawn juxtaposed.
  11.  
  12.  
  13. @interface HandTileView:CardHolder
  14. {
  15.  
  16.                                                 // This is the player's hand.  A player holds a fixed number
  17.                                                 //    of cards which are stored in this array.  Its position in the
  18.                                                 //    array is relative to its position in the view.
  19.     CardView    *myHand[ HAND_SIZE ];
  20. }
  21.  
  22.  
  23. + newFrame:( const NXRect * )frameRect;
  24.                                                 // The new card is always placed at 0, which is the left most
  25.                                                 //    card holder.  If there are any empty slots the card is moved
  26.                                                 //    to the empty slot.
  27. - addCard:( CardView * )aCard :sender;
  28.                                                 // When a card is removed from the view its slot is always filled
  29.                                                 //    with the card at 0.
  30. - removeCard:( CardView * )aCard :sender;    
  31.                                                 // Overrides the superclass methods.  They remove a card(s) from the subview
  32.                                                 //    list and send them to some other object.
  33. - sendCard:( CardView * )aCard to:anObject;
  34. - sendAllCardsTo:anObject;
  35.                                                 // A private method.  When a card is added or deleted from the view
  36.                                                 //    the view is reordered.  
  37. - _adjustCards;
  38.  
  39.  
  40. @end
  41.